package com.atguigu.algorithm;

public class Add {
    public static void main(String[] args) {
        System.out.println(add(13, 7));
    }
    public static int add(int a,int b){
        int sum=a;
        while(b!=0){
            sum=a^b;
            b=(a&b)<<1;
            a=sum;
        }
        return sum;
    }
}
